import request from '@/utils/request'

// 查询每月库存分析列表
export function listStockMonth(query) {
  return request({
    url: '/report/stockMonth/list',
    method: 'get',
    params: query
  })
}

// 查询每月库存分析详细
export function getStockMonth(id) {
  return request({
    url: '/report/stockMonth/' + id,
    method: 'get'
  })
}

// 新增每月库存分析
export function addStockMonth(data) {
  return request({
    url: '/report/stockMonth',
    method: 'post',
    data: data
  })
}

// 修改每月库存分析
export function updateStockMonth(data) {
  return request({
    url: '/report/stockMonth',
    method: 'put',
    data: data
  })
}

// 删除每月库存分析
export function delStockMonth(id) {
  return request({
    url: '/report/stockMonth/' + id,
    method: 'delete'
  })
}
